package cn.xpg.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.xpg.entity.Repertory;

public interface RepertoryMapper {
	// 新增库存
	public int addRepertory(Repertory repertory);

	// 删除库存
	public int deleteRepertory(@Param("repertory_id") int repertory_id);

	// 查询库存
	public List<Repertory> getRepertoryList(@Param("product_name") String product_name,
			@Param("currentPageNo") int currentPageNo, @Param("pageSize") int pageSize);

	// 查询库存行数
	public Object getRepertoryCount(@Param("product_name") String product_name);

	// 获取库存id
	public Repertory getRepertoryId(@Param("repertory_id") int repertory_id);

	// 修改库存
	public int updateRepertory(Repertory repertory);

	// 根据店铺名查询库存
	public List<Repertory> getRepertoryListBySname(@Param("store_name") String store_name,
			@Param("currentPageNo") int currentPageNo, @Param("pageSize") int pageSize);

	public Object getRepertoryCountBySname(@Param("store_name") String store_name);
}
